package com.lcx.db137.service.impl;

import com.lcx.db137.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lcx.db137.mapper.RoleMapper;
import com.lcx.db137.entity.Role;

import java.util.List;

/**
 * @Description  
 * @version 1.0 
 * @author lcx
 * @date 2024/12/24 11:48
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private  RoleMapper roleMapper;

    @Override
    public List<Role> selectRoleByUserId(int userid) {
        return roleMapper.selectRoleByUserId(userid);
    }
}
